package com.hup.winHolderService.model.action;

import lombok.Data;

/**
 * 移动鼠标
 *
 * @author hugan
 * @date 2023/10/8
 */
@Data
public class MouseActionReq {
    public static final int ACTION_MOVE_START = 1;
    public static final int ACTION_MOVE = 2;
    //public static final int ACTION_MOVE_STOP = 3;
    public static final int ACTION_PRESS = 4;
    public static final int ACTION_UP = 5;
    public static final int ACTION_CLICK = 6;

    private Integer action;

    /**
     * 前端触摸事件的坐标
     * 仅 {@link #ACTION_MOVE_START}, {@link #ACTION_MOVE} 时有值
     */
    private Integer x;
    private Integer y;

    /**
     * 移动灵敏度/比率
     * 仅 {@link #ACTION_MOVE} 时有值
     */
    private Float ratio;

}
